home *** CD-ROM | disk | FTP | other *** search
- Path: news.edge.net!news
- From: Mike Wright <qmsi@edge.net>
- Newsgroups: comp.lang.c++
- Subject: Visuall C++ linker question
- Date: Fri, 12 Apr 1996 16:18:21 -0500
- Organization: QMSI
- Message-ID: <316EC89D.2B24@edge.net>
- NNTP-Posting-Host: ip206.nash.edge.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01Gold (Win95; I)
-
- I am currently starting up a large project. I wish to have a common library of
- derived class functions which can be used by several programs (projects). I
- derived 2 CRecordSet classes and got them working in a single project using
- AppWizard. I then moved the files to a different directory and created a new
- static library-based project in that directory. I removed the files from the original
- project (a dialog based application). The static library is created successfully,
- but when I attempt to link my dialog-based project to that library, I get 125 link
- errors about multiply defined symbolss. None of these are my project's variables.
- I think it has something to do with "stdafx.h" being included in both places, but I
- need it in both places. It might have something to do with the pre-compiled headers,
- but after 4 hours of working on this I'm stumped. It's not near as staightforward as
- Unix.
-
- Is there a way to modify the linker options for precompiled headers to create a
- single pch file and have the static library and the application project both
- use just that one pch? I tried this but was unsuccessful. Is there another way
- to prevent these multiply defined symbols errors? I need help!!!!!!!
-
- Thanks in advance,
-
- Mike Wright
-